home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK2.toast / Development Kits (Disc 2) / QuickDraw™ GX / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / LaserWriterIIsc (New GX v1.1) / LaserWriterIISC.make < prev    next >
Encoding:
Text File  |  1995-04-10  |  7.6 KB  |  217 lines  |  [TEXT/MPS ]

  1. #==============================================================================================
  2. #
  3. #    Make FILE:        LaserWriterIISC.make
  4. #
  5. #    VERSION:            1.0
  6. #
  7. #    COPYRIGHT:        (c) 1992-1994 Apple Computer Inc.
  8. #                        All rights reserved.
  9. #
  10. #    PURPOSE:            This file contains the build commands for the LaserWriterIISC driver.
  11. #
  12. #  8/28/94 - dmh - Finalized for SDK.
  13. # 12/18/93 - dmh - Updated for the b3 seed.
  14. #    9/13/93 - dmh - Updated for the b2 seed.
  15. #    4/26/93 - dmh - Made makefile totally self-supporting for b1 seed.
  16. #    4/26/93 - dh  - Made makefile totally self-supporting for f1 seed.
  17. #
  18. #==============================================================================================
  19.  
  20. #======= Point this variable to your GX libraries directory =======
  21.  
  22. GXLibrariesSources    =    {MPW}'Graphics Libraries:'
  23.  
  24.  
  25. #========== Directories Containing Source and Object Files ==========
  26.  
  27. Objects                    =    :Objects:
  28. Sources                    =    
  29.  
  30. #========== Compiler Options ==========
  31.  
  32. AsmOptions                =    -case obj
  33. RezOptions                =    -rd -d SystemSevenOrLater -i {RIncludes}
  34. COptions                    =    -b2 -d SystemSevenOrLater -d applec -i {CIncludes}
  35. DriverLinkOptions        =    -ra =resSysHeap,resPurgeable
  36.  
  37. #========== Printing Manager Dependent Header Files ==========
  38.  
  39. PrintManagerHeaderFiles    =    {CIncludes}"PrintingManager.h"            ∂
  40.                                     {CIncludes}"PrintingMessages.h"            ∂
  41.                                     {CIncludes}"PrintingDrivers.h"            ∂
  42.                                     {CIncludes}"PrintingExtensions.h"        ∂
  43.                                     {CIncludes}"Collections.h"                    ∂
  44.                                     {CIncludes}"Messages.h"                        ∂
  45.                                     {CIncludes}"PrintingResTypes.h"            ∂
  46.                                     {CIncludes}"PrintingErrors.h"
  47.  
  48. GraphicsHeaderFiles        =    {CIncludes}"graphics routines.h"        ∂
  49.                                     {CIncludes}"graphics libraries.h"    ∂
  50.                                     {CIncludes}"math routines.h"            
  51.  
  52. #========== Files to Link into OldAPI Segment ==========
  53.  
  54. OldAPISegObjs    =    "{Objects}OldAPIMsgJumpTable.a.o"        ∂
  55.                         "{Objects}OldAPIMessageIntf.c.o"            ∂
  56.                         "{Libraries}Runtime.o"
  57.  
  58.  
  59. #========== Files to Link into Universal Message Segment ==========
  60.  
  61. UnivSegObjs        =    "{Objects}UniversalMsgJumpTable.a.o"    ∂
  62.                         "{Objects}LaserSCIntf.c.o"                    ∂
  63.                         "{Objects}SCPrinterStatus.c.o"            ∂
  64.                         "{Objects}UniversalMessageIntf.c.o"        ∂
  65.                         "{Objects}qd library.c.o"                    ∂
  66.                         "{Objects}color library.c.o"                ∂
  67.                         "{CLibraries}StdCLib.o"                        ∂
  68.                         "{Libraries}Runtime.o"
  69.  
  70.  
  71. #========== Files to Link into the Chooser PACK ==========
  72.  
  73. ChooserPackObjs =    "{Objects}ChooserSupport.a.o"                ∂
  74.                         "{Objects}ChooserSupport.c.o"
  75.  
  76.  
  77. #========== Files to Link into the Chooser LDEF ==========
  78.  
  79. ChooserLDEFObjs =    "{Objects}ChooserSupport.c.o"                
  80.  
  81.  
  82. #========== Link and Rez Build Statements ==========
  83.  
  84. "LaserWriterIISC"        ƒ        {OldAPISegObjs}                                 ∂
  85.                                     {UnivSegObjs}                                    ∂
  86.                                     {ChooserPackObjs}                                ∂
  87.                                     {ChooserLDEFObjs}                                ∂
  88.                                     "{Sources}LaserWriterIISC.make"            ∂
  89.                                     "{Sources}LaserSCResources.r"                ∂
  90.                                     "{Sources}OldAPIResources.r"                ∂
  91.                                     "{Sources}UniversalMessageResources.r"        
  92.         Echo "Linking LaserWriterIISC"
  93.         Link {UnivSegObjs}                                    ∂
  94.               {DriverLinkOptions}                            ∂
  95.               -rt pdvr=0                                        ∂
  96.               -sg "LaserWriterIISC"                            ∂
  97.               -m SD_UniversalMsgJumpTable                    ∂
  98.               -o "{Objects}LWSC_UnivSeg" 
  99.         Link {OldAPISegObjs}                                    ∂
  100.               {DriverLinkOptions}                            ∂
  101.               -rt pdvr=1                                        ∂
  102.               -sg "LaserWriterIISC"                            ∂
  103.               -m SD_OldAPIMsgJumpTable                        ∂
  104.               -o "{Objects}LWSC_OldAPISeg" 
  105.         Link    {ChooserPackObjs}                                ∂
  106.                 -rt PACK=-4096                                    ∂
  107.                 -sg PrintingPACK                                ∂
  108.                 -m EntryPoint                                    ∂
  109.                 -o "{Objects}LWSC_PACK"
  110.         Link    {ChooserLDEFObjs}                                ∂
  111.                 -w                                                    ∂
  112.                 -rt LDEF=-4096                                    ∂
  113.                 -sg LDEF                                            ∂
  114.                 -m LDEF                                            ∂
  115.                 -o "{Objects}LWSC_LDEF"
  116.         Echo "Rezzing LaserWriterIISC Driver"
  117.         Rez    {RezOptions} -c 'scSC' -t 'pdvr' -ov -s {Objects}                    ∂
  118.                 -o "LaserWriterIISC" "{Sources}LaserSCResources.r" "{Sources}OldAPIResources.r"    ∂
  119.                 "{Sources}UniversalMessageResources.r" "{Sources}ChooserSupport.r" -append
  120.  
  121.  
  122. #========== Assemble Build Statements - OldAPIMsgJumpTable.a ==========
  123.  
  124. "{Objects}OldAPIMsgJumpTable.a.o"    ƒ     "{Sources}OldAPIMsgJumpTable.a"        ∂
  125.                                                     "{Sources}LaserWriterIISC.make"
  126.     Echo "Assembling OldAPIMsgJumpTable.a"
  127.     Asm {AsmOptions} {MakeJumpTable} {Sources}OldAPIMsgJumpTable.a -o {Objects}OldAPIMsgJumpTable.a.o
  128.     
  129.  
  130. #========== Assemble Build Statements - UniversalMsgJumpTable.a ==========
  131.  
  132. "{Objects}UniversalMsgJumpTable.a.o"    ƒ     "{Sources}UniversalMsgJumpTable.a"        ∂
  133.                                                         "{Sources}LaserWriterIISC.make"
  134.     Echo "Assembling UniversalMsgJumpTable.a"
  135.     Asm {AsmOptions} {MakeJumpTable} {Sources}UniversalMsgJumpTable.a -o {Objects}UniversalMsgJumpTable.a.o
  136.     
  137.  
  138. #========== Assemble Build Statements - ChooserSupport.a ==========
  139.  
  140. "{Objects}ChooserSupport.a.o"    ƒ     "{Sources}ChooserSupport.a"        ∂
  141.                                             "{Sources}LaserWriterIISC.make"
  142.     Echo "Assembling ChooserSupport.a"
  143.     Asm {AsmOptions} {MakeJumpTable} {Sources}ChooserSupport.a -o {Objects}ChooserSupport.a.o
  144.     
  145.  
  146. #========== Compile Build Statements - LaserSCIntf.c ==========
  147.  
  148. "{Objects}qd library.c.o"        ƒ {GXLibrariesSources}"qd library.c"
  149.     Echo "compiling qd library.c"
  150.     C {COptions} -o {Objects} {GXLibrariesSources}"qd library.c"
  151.  
  152. "{Objects}color library.c.o"        ƒ {GXLibrariesSources}"color library.c"
  153.     Echo "compiling color library.c"
  154.     C {COptions} -o {Objects} {GXLibrariesSources}"color library.c"
  155.  
  156. "{Objects}LaserSCIntf.c.o"    ƒ    "{Sources}LaserSCIntf.c"            ∂
  157.                                         {PrintManagerHeaderFiles}            ∂
  158.                                         {GraphicsHeaderFiles}                ∂
  159.                                         "{Sources}LaserWriterIISC.make"    ∂
  160.                                         "{Sources}LaserSCResources.h"     ∂
  161.                                         "{Sources}LaserSCIntf.h"
  162.     Echo "Compiling LaserSCIntf.c"
  163.     C "{Sources}LaserSCIntf.c" -o "{Objects}LaserSCIntf.c.o"  {COptions}
  164.  
  165.  
  166. #========== Compile Build Statements - OldAPIMessageIntf.c ==========
  167.  
  168. "{Objects}OldAPIMessageIntf.c.o"    ƒ    "{Sources}OldAPIMessageIntf.c"    ∂
  169.                                                 {PrintManagerHeaderFiles}            ∂
  170.                                                 {GraphicsHeaderFiles}                ∂
  171.                                                 "{Sources}LaserWriterIISC.make"    ∂
  172.                                                 "{Sources}LaserSCResources.h"     ∂
  173.                                                 "{Sources}OldAPIMessageIntf.h"
  174.     Echo "Compiling OldAPIMessageIntf.c"
  175.     C "{Sources}OldAPIMessageIntf.c" -o "{Objects}OldAPIMessageIntf.c.o"  {COptions}
  176.  
  177.  
  178. #========== Compile Build Statements - SCPrinterStatus.c ==========
  179.  
  180. "{Objects}SCPrinterStatus.c.o"    ƒ    "{Sources}SCPrinterStatus.c"        ∂
  181.                                                 {PrintManagerHeaderFiles}            ∂
  182.                                                 {GraphicsHeaderFiles}                ∂
  183.                                                 "{Sources}LaserWriterIISC.make"    ∂
  184.                                                 "{Sources}LaserSCResources.h"     ∂
  185.                                                 "{Sources}LaserSCIntf.h"            ∂
  186.                                                 "{Sources}SCPrinterStatus.h"
  187.     Echo "Compiling SCPrinterStatus.c"
  188.     C "{Sources}SCPrinterStatus.c" -o "{Objects}SCPrinterStatus.c.o"  {COptions}
  189.  
  190.  
  191. #========== Compile Build Statements - UniversalMessageIntf.c ==========
  192.  
  193. "{Objects}UniversalMessageIntf.c.o"    ƒ    "{Sources}UniversalMessageIntf.c"        ∂
  194.                                                     {PrintManagerHeaderFiles}                    ∂
  195.                                                     {GraphicsHeaderFiles}                        ∂
  196.                                                     "{Sources}LaserWriterIISC.make"            ∂
  197.                                                     "{Sources}LaserSCResources.h"             ∂
  198.                                                     "{Sources}LaserSCIntf.h"                    ∂
  199.                                                     "{Sources}SCPrinterStatus.h"                ∂
  200.                                                     "{Sources}UniversalMessageIntf.h"
  201.     Echo "Compiling UniversalMessageIntf.c"
  202.     C "{Sources}UniversalMessageIntf.c" -o "{Objects}UniversalMessageIntf.c.o"  {COptions}
  203.  
  204.  
  205. #========== Compile Build Statements - ChooserSupport.c ==========
  206.  
  207. "{Objects}ChooserSupport.c.o"    ƒ    "{Sources}ChooserSupport.c"        ∂
  208.                                             {PrintManagerHeaderFiles}            ∂
  209.                                             {GraphicsHeaderFiles}                ∂
  210.                                             "{Sources}LaserWriterIISC.make"    ∂
  211.                                             "{Sources}ChooserSupport.a"         ∂
  212.                                             "{Sources}ChooserSupport.r"             
  213.     Echo "Compiling ChooserSupport.c"
  214.     C "{Sources}ChooserSupport.c" -o "{Objects}ChooserSupport.c.o"  {COptions}
  215.  
  216.  
  217.